/*
 * TMap Designer - A Thematic Map design software
 * Copyright (C) 2006 World Health Organization
 * http://www.who.int
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */
package who.tmap.ui.dataimportwiz;

import java.awt.BorderLayout;

import javax.swing.JInternalFrame;

import javax.swing.JComboBox;

/**
 * @author stl
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class JFrameDSDataImportWizard extends JInternalFrame {

    public static final String EXCEL_ADAPTER ="MS Excel";
    public static final String CSV_ADAPTER ="Flat file (CSV)";    
    public static final String JDBC_ODBC_ADAPTER ="Database";
    
	private javax.swing.JPanel jContentPane = null;

	private javax.swing.JLabel jLabel = null;
	private javax.swing.JPanel jPanel = null;
	private JComboBox jComboBoxAdapter = null;
	
	/**
	 * This is the default constructor
	 */
	public JFrameDSDataImportWizard() {
		super();
		initialize();
	}
	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(300, 200);
		this.setContentPane(getJContentPane());
	}
	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private javax.swing.JPanel getJContentPane() {
		if (jContentPane == null) {
			jContentPane = new javax.swing.JPanel();
			jContentPane.setLayout(new BorderLayout());
			jContentPane.add(getJPanel(), BorderLayout.CENTER);
		}
		return jContentPane;
	}
	/**
	 * This method initializes jLabel
	 * 
	 * @return javax.swing.JLabel
	 */
	private javax.swing.JLabel getJLabel() {
		if(jLabel == null) {
			jLabel = new javax.swing.JLabel();
			jLabel.setText("Select a data source format");
		}
		return jLabel;
	}
	/**
	 * This method initializes jPanel
	 * 
	 * @return javax.swing.JPanel
	 */
	private javax.swing.JPanel getJPanel() {
		if(jPanel == null) {
			jPanel = new javax.swing.JPanel();
			jPanel.add(getJLabel(), null);
			jPanel.add(getJComboBoxAdapter(), null);
		}
		return jPanel;
	}
	/**
	 * This method initializes jComboBoxAdapter	
	 * 	
	 * @return javax.swing.JComboBox	
	 */    
	public JComboBox getJComboBoxAdapter() {
		if (jComboBoxAdapter == null) {
			jComboBoxAdapter = new JComboBox();
			
			jComboBoxAdapter.addItem( CSV_ADAPTER );
			jComboBoxAdapter.addItem( EXCEL_ADAPTER );
			jComboBoxAdapter.addItem( JDBC_ODBC_ADAPTER );
			
		}
		return jComboBoxAdapter;
	}
 }
